import request from '/@/utils/request'; // 假设你有这样的request工具


// 获取统计数据
export function getmydata(params: object) {
	return request({
		url: '/admin/index/index',
		method: 'post',
		data: params
	})
}
// 服务趋势接口
export function getIndexServes(params: object) {
	return request({
		url: '/admin/index/serves',
		method: 'post',
		data: params
	})
}
// 获取销售线索列表
export function PostSalesLeads(params:object) {
  return request({
    url: '/admin/salesleads/index',
    method: 'post',
    data: params
  });
}
// 删除线索
export function PostSalesLeadsDel(params:object) {
  return request({
    url: '/admin/salesleads/delSalesLeads',
    method: 'post',
    data: params
  });
}
// 获取要分配人员列表
export function PostSalesLeadsGetUserList(params:object) {
  return request({
    url: '/admin/salesleads/getuserlist',
    method: 'post',
    data: params
  });
}
// 新增线索
export function addsalesleads(params:object) {
  return request({
    url: '/admin/salesleads/addsalesleads',
    method: 'post',
    data: params
  });
}

// 添加分配
export function PostSalesLeadsAllocation(params:object) {
  return request({
    url: '/admin/salesleads/allocation',
    method: 'post',
    data: params
  });
}

// 修改分配
export function updateSalesLeads(params:object) {
  return request({
    url: '/admin/salesleads/updatesalesleads',
    method: 'post',
    data: params
  });
}

// 线索文件上传接口
export function PostSalesLeadsUploadFile(params:object) {
  return request({
    url: '/admin/upload/oss',
    method: 'post',
    data: params
  });
}
